package com.wanxi.chat.offline.api;


import com.wanxi.chat.model.ChatEntity;
import com.wanxi.chat.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "offline-server")
public interface OfflineFeignClient {


    @PostMapping("/save")
    CommonResult redisSaveFeign(@RequestBody ChatEntity chatQueryVO);

    @RequestMapping(value = "/pull",method = RequestMethod.GET,consumes = "application/json")
    @ResponseBody
    CommonResult redisPullFeign(@RequestBody ChatEntity chatQueryVO);

    @PostMapping("/remove")
    CommonResult redisRemoveFeign(@RequestBody ChatEntity chatQueryVO);

}

